/**
 * Project: apollo-base-commons
 * 
 * File Created at 2016年10月25日
 * 
 * Copyright 2015-2016 dx.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DongXue software Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with dx.com.
 */
package com.dx.pf.commons.async.bean;

import java.util.concurrent.atomic.AtomicInteger;

/** 
* @ClassName: Profiler 
* @Description: TODO(这里用一句话描述这个类的作用) 
* @author wuzhenfang(wzfbj2008@163.com)
* @date 2016年10月25日 下午1:46:12 
* @version V1.0 
*/
public class Profiler {

	private AtomicInteger number;

	public Profiler() {
		this.number = new AtomicInteger();
	};

	public Profiler(int number) {
		this.number = new AtomicInteger();
		this.number.set(number);
	}

	public Profiler getAndIncrement() {
		number.getAndIncrement();
		return this;
	}

	public Profiler decrementAndGet() {
		number.decrementAndGet();
		return this;
	}

	public int getNumber() {
		return this.number.get();
	}

	public void setNumber(int number) {
		this.number.set(number);
	}
}
